# coding=utf-8
from sqlalchemy import Column, Boolean, BigInteger, String

from db_models.orm_base import BaseOrmClass


class ParamEvalAnswers(BaseOrmClass):
    '''
    模型(表)备注:
回答
    '''
    __tablename__ = 'param_eval_answers'

    '''      '''
    id = Column(BigInteger(), primary_key=True)

    '''   问题ID   '''
    qid = Column(BigInteger(), nullable=False)

    '''   对或错(对1,错0)   '''
    answer = Column(Boolean(), nullable=False)

    '''   参数值评估测试ID   '''
    test_id = Column(BigInteger(), nullable=False)

    '''   用户的选项   '''
    option = Column(String(1))

    def __repr__(self):
        return "param_eval_answers(qid='{self.qid}',answer='{self.answer}',test_id='{self.test_id}')".format(self=self)

    def exclude(self): return ()
